pygrub: Allow scrolling of the list of entries
authorMiroslav Rezanina <mrezanin@redhat.com>
Tue, 13 Dec 2011 15:38:20 +0000 (15:38 +0000)
committerMiroslav Rezanina <mrezanin@redhat.com>
Tue, 13 Dec 2011 15:38:20 +0000 (15:38 +0000)
commit688a04531743943180a63aae1a8985cfdc3df191
treeefa2458fb158a15f380af6f9683e2157242a28fa
parentc3bf51381044d61bb94ad72613563da8e3cd67d3
pygrub: Allow scrolling of the list of entries

When user wants to change entry in grub2 menu in pygrub, there
may be crash of pygrub in case of editing item ('e' key).

Crash on editing is caused longer entry list in case of grub2. As entry
window is 10 lines high, it can hold only 8 entries (2 lines for border).
Adding line outside of windows high causes crash. Patch add handling
for longer lists and scrolling through them.

Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/pygrub/src/pygrub